package com.xb.loan.usercenter.service.user;


import com.xb.loan.log.exception.BizException;
import com.xb.loan.usercenter.service.user.bean.UserIdentifyVO;

import java.util.Map;

/**
 * 类  描  述 : 用户实名信息接口
 */
public interface IUserIdentifyService {
	
	/**
	 * 用户实名
	 * @param userId
	 * @param userIdentifyVO
	 * @return realId
	 * @throws BizException
	 */
	public void realName(String userId, UserIdentifyVO userIdentifyVO) throws BizException;

	/**
	 * 用户实名
	 * @param userId
	 * @param loginName
	 * @param userIdentifyVO
	 * @return realId
	 * @throws BizException
	 */
	public void realName(String userId, String loginName, UserIdentifyVO userIdentifyVO) throws BizException;

    /**
     *
     * 根据用户编号查询用户实名信息
     * @param userId 用户编号
     * @return 真实姓名表T_User_identify映射的对象，如未实名返回null。
     * @throws BizException
     */
	public UserIdentifyVO queryByUserId(String userId) throws BizException;

    /**
     *
     * 根据实名编号查询用户实名信息
     * @param realId 实名编号
     * @return 真实姓名表T_User_identify映射的对象，如未实名返回null。
     * @throws BizException
     */
	public UserIdentifyVO queryByRealId(String realId) throws BizException;

    /**
     * 根据卡信息查询实名信息
     * @param cardType
     * @param cardNo
     * @return
     * @throws BizException
     */
	public UserIdentifyVO queryByCardNo(int cardType, String cardNo) throws BizException;

	/**
	 * 更新用户实名信息
	 * @param userId
	 * @param userIdentifyVO
	 * @return realId
	 * @throws BizException
	 */
	public void updateUserIdentify(String userId, UserIdentifyVO userIdentifyVO) throws BizException;

	/**
	 *
	 * 根据userId查询实名信息
	 * @param userId
	 * @return
	 * @throws BizException
	 */
	public String queryRealnameByUserId(String userId) throws BizException;

	/**
	 *
	 * @param map
	 * @return
	 * @throws BizException
	 */
	public UserIdentifyVO queryByNameAndCardNo(Map<String, String> map) throws BizException;
	
	/**
	 * 
	 * @param userIdentifyVO
	 * @return
	 * @throws BizException
	 */
	public int addUserIdentify(UserIdentifyVO userIdentifyVO) throws BizException;
}
